package day_07.oop;

/**
 * @ClassName TestPhone
 * @Description TODO
 * @Author hp
 * @Date 2021/6/10 16:13
 * @Version 1.0
 **/
public class TestPhone {
    public static void main(String[] args) {
        Phone phone1 = new Phone("苹果",9999,"A2106");
        Phone phone2 = new Phone("华为",19999,"Meta40");
        phone1.call(phone1.getBrand());
        phone1.sendMessage(phone1.getBrand());
        System.out.println("phone1.toString() = " + phone1.toString());
        phone2.call(phone2.getBrand());
        phone2.sendMessage(phone2.getBrand());
        System.out.println("phone2.toString() = " + phone2.toString());


    }
}
